Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tutorial to use scrcpy and sndcpy at same time #74

Open
equiman opened this issue Oct 23, 2020 · 6 comments
Open

Tutorial to use scrcpy and sndcpy at same time #74

equiman opened this issue Oct 23, 2020 · 6 comments

Comments

@equiman
Copy link

equiman commented Oct 23, 2020

First of all. I want to thank you to publish this project, it's amazing and works like a charm.

I've written an article to use both of them at the same time. Hope it helps.

https://dev.to/equiman/share-your-android-screen-and-audio-on-macos-1p64

It will be good to add sndcpy to brew repositories.

@astromark
Copy link

Thanks. This inspired me to try the same with Linux.

For anyone who is interested, first add the following to your .bashrc:

export SNDCPY_HOME=$HOME/sndcpy
export SNDCPY_APK=$HOME/sndcpy/sndcpy.apk
alias sndcpy="$HOME/sndcpy/sndcpy"
alias sndscr="$HOME/sndcpy/sndscr.sh"

Then create the sndscr.sh script:

#!/bin/bash

xterm -e sndcpy &
xterm -e scrcpy --disable-screensaver -f

Then make sure to make it executable with chmod +x.

Note that I have set the disable screensaver and fullscreen options for scrcpy as I'm using it for watching TV shows. You may or may not wish to include those.

@diazabdulm
Copy link

Is there a tutorial of some sort to do in Windows with Batch?

@equiman
Copy link
Author

equiman commented Jun 14, 2022

I have not. But I think you can create something similar with Windows Terminal instead of iTerm

https://docs.microsoft.com/en-us/windows/terminal/command-line-arguments?tabs=windows

@diazabdulm
Copy link

Yeah, I resorted to creating a Batch script. It's rough, but it gets the job done. I also have it so an EXE shortcut once double-clicked runs the script. It's as seamless as possible without adding a GUI.

@SritharBoss
Copy link

Yeah, I resorted to creating a Batch script. It's rough, but it gets the job done. I also have it so an EXE shortcut once double-clicked runs the script. It's as seamless as possible without adding a GUI.

Can you please share us the script?

@Lantern1984
Copy link

Yeah, I resorted to creating a Batch script. It's rough, but it gets the job done. I also have it so an EXE shortcut once double-clicked runs the script. It's as seamless as possible without adding a GUI.

Can you please share us the script?

I'd like a copy too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants